Q: RMI stands for?
Solution: The RMI (Remote Method Invocation) is an API that provides a mechanism to create distributed applications.
Q: A remote object is an object whose method can be invoked from another virtual environment.
Solution: The statement is true. JVM is java virtual environment. RMI uses stub and skeleton object for communication with the remote object. A remote object is an object whose method can be invoked from another virtual environment.
Q: A typical _________ program creates some remote objects, makes references to these objects accessible, and waits for clients to invoke methods on these objects.
Solution: A server program creates remote objects. It gives reference to these objects and then waits for clients to invoke methods on these objects.
Q: A typical __________ program obtains a remote reference to one or more remote objects on a server and then invokes methods on them.
Solution: A client program obtains a remote reference to one or more remote objects on a server. It then invokes methods on them.
Q: The ___________ layer, which provides the interface that client and server application objects use to interact with each other.
Solution: The stub or skeleton layer provides the interface that client and server application objects use for interaction with each other.
Q: A layer which is the binary data protocol layer.
Solution: The transport protocol layer is the binary data protocol that sends remote object requests over the wire. A client is any remote application that communicates with these server objects.
Q: A middleware layer between the stub skeleton and transport.
Solution: The remote reference layer is the middleware between the stub/skeleton layer and underlying transport protocol.
Q: An object acting as a gateway for the client side.
Solution: The stub is an object that acts as a gateway for the client side. The outgoing requests are passed through the stub.
Q: A gateway for the server side object.
Solution: The skeleton is an object, acts as a gateway for the server side object. All the incoming requests are routed through it.
Q: RMI uses stub and skeleton for communication with the ________ object.
Solution: RMI uses stub and skeleton object for communication with the remote object. A remote object is an object whose method can be invoked from another JVM.
You Have Score    | /10 |